/**
 * 
 */
package com.gxa.ehome.dao.impl;




import com.gxa.ehome.dao.BaseDao;
import com.gxa.ehome.dao.CpDao;
import com.gxa.ehome.entity.Cp;
import com.gxa.ehome.entity.User;
import com.gxa.ehome.util.DBUtil;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
//import com.gxa.userManager.entity.*;

/**
 * UserDaoImpl 作为UserDao的实现类
 * 
 * @author bilei
 * @date 2021年3月8日
 */
    public class CpDaoImpl extends BaseDao<Cp>   implements CpDao {
	private DBUtil dbutil = new DBUtil();

	@Override
	public List<Cp> selectAll() throws Exception {
		List<Cp> cpList = super.selectAll(Cp.class);
		return cpList;
	}

	@Override
	public List<Cp> selectByPage(int page, int size) throws Exception {
		List<Cp> userList = super.selectByPage(page, size, Cp.class);
		return userList;
	}

	@Override
	public Integer insert(Cp cp) throws Exception {
		return super.insert(cp);
	}

	@Override
	public Cp selectById(Integer id) throws Exception {
		return super.selectById(id, Cp.class);
	}

	@Override
	public Integer update1(Integer id, Cp cp) throws Exception {
		Integer line = super.update1(id, cp);
		return line;
	}


}
